Skip to content

URL context [原生格式]

概览

认证

  • Header: Authorization: Bearer <token>

请求参数

  • Header: Authorization: Bearer <token>
  • Body 类型: application/json
{
      "contents": [
          {
               "role": "user",
              "parts": [
                  {"text": "https://www.freqtrade.io/en/stable/   Explain the content of this website"}
              ]
          }
      ],
      "tools": [
          {
              "urlContext": {}
          }
      ]
  }

请求示例

curl --location -g --request POST 'https://api.winfull.cloud-ip.cc/v1beta/models/gemini-2.5-flash:generateContent?key=' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
      "contents": [
          {
               "role": "user",
              "parts": [
                  {"text": "https://www.freqtrade.io/en/stable/   Explain the content of this website"}
              ]
          }
      ],
      "tools": [
          {
              "urlContext": {}
          }
      ]
  }'

返回示例

🟢200成功 示例

{}

最后更新:2025-11-25 01:25:44

🚀 伝富AI-API文档 - 强大的AI接口平台